package com.ems.dao.supers.questions;

import com.ems.pojo.data.RequestData;
import com.ems.pojo.questions.Choose;
import com.ems.pojo.questions.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 伟伟
 * @Date: 2019/10/19
 * @Description: 描述
 * @Version: 1.0
 */
public interface ChooseDao {

    //添加选择题
    public void addChoose(Choose choose);

    //删除选择题
    public void deleteChoose(Choose choose);

    //修改选择题
    public void updateChoose(Choose choose);

    //根据条件查询选择题
    public List<Choose> findChoose(Map<String,Object> map);

    public int addNewChoose(Choose choose);

    public Choose getChooseById(Choose choose);

    public int chooseSumByType(@Param("sb_id") int sb_id,@Param("ch_type") int ch_type);

    public List<Choose> getChooseBySbAndId(@Param("sb_id") int sb_id,@Param("ch_type") int ch_type,@Param("num") int num);

    public List<Choose> getChooseByIdsList(@Param("idsList") List<Integer> idsList);
}

